package zuoye5;

import java.util.Random;
import java.util.Scanner;

public class Test3 {
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        Random r = new Random();
        int random,guess;
        random = r.nextInt(10)+1;

        do{
            System.out.println("请输入一个1--10之间的随机数");
            guess = sc.nextInt();
            if(guess>random){
                System.out.println("bigger");
            }
            if(guess<random){
                System.out.println("smaller");
            }
        }
        while(guess!=random);

        System.out.println("binGo");
    }
}
